import React, { useEffect } from "react";

const HighlightsDetail = ({ count, handleClick }) => {
    useEffect(() => {
        console.log("HighlightsDetail is updating");
    })
    return <div onClick={handleClick}>HighlightsDetail: {count}</div>
}

export default React.memo(HighlightsDetail);